package tvv.levelup.model;

import java.util.Set;

/**
 * Created by VLAD on 03.07.2014.
 */
public class Employee
{
    private int id;
    private String name;
    private Address address;
    private Set certificate;

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Employee() {
    }

    public Employee(String name, Address address) {
        this.name = name;
        this.address = address;
    }

    protected int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Address getAdress() {
        return address;
    }

    public void setAdress(Address address) {
        this.address = address;
    }

    public Set getCertificate() {
        return certificate;
    }

    public void setCertificate(Set certificate) {
        this.certificate = certificate;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address=" + address +
                ", certificate=" + certificate +
                '}';
    }
}
